﻿@model System.Web.Mvc.HandleErrorInfo

@{
    ViewBag.Title = "Error";
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@Html.Encode(ViewData["Title"])</title>
</head>
<body>
    <h2>Ein Fehler ist aufgetreten.</h2>
    <p>@Html.Encode(ViewData["Description"])</p>
    <p>
        @Model.Exception;
    </p>
    @{
        try
        {
            //Loggen der Informationen, wenn es sich um eine CurrentController Exception handelt     
            EFDebugging.Debugging.WriteLog("CurrentControllerName: " + Model.ControllerName);
            EFDebugging.Debugging.WriteLog("ActionName: " + Model.ActionName);
            EFDebugging.Debugging.WriteLog("WebApplicationError:", Model.Exception);
        }
        catch (Exception exception)
        {
            
        }
    }

    <div>
        Zurück zur Startseite @Html.ActionLink(Navigation.HomeLinkRESX, EActionHome.Index.ToString(), EControllers.Home.ToString())
    </div>
</body>
</html>
